package com.jd.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jd.pojo.Book;

public interface BookService {
    /*分页查询*/
    public IPage<Book> Paging(Long categoryId,String order,Integer page,Integer rows);

    /*根据读书id查询*/
    public Book findBookById(Long bookId);

    //统计book的平均评分
    public void updateEvaluation();

    //增加图书
    public void createBook(Book book);

    //删除图书
    public void deleteBook(Long bookId);

    //修改图书
    public void updateBook(Book book);
}
